package utils;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/7/19
 * Time: 02:28
 */
public class ScannerSingleton {

    private static Scanner scanner;

    public ScannerSingleton() {
    }

    public static Scanner getScanner() {
        if (scanner == null) {
            scanner = new Scanner(System.in);
        }
        return scanner;
    }
}
